package homework;

import java.util.TreeMap;
import java.util.TreeSet;

/**
 * @author: knowno
 * @create: 2025-09-16 09:18
 * @Version 1.0
 **/
public class TestEmployee3 {
    public static void main(String[] args) {
        TreeMap<Integer,Employee3> employees = new TreeMap<>();
        employees.put(3,new Employee3(3,"a",6000,"软件开发工程师"));
        employees.put(1,new Employee3(1,"b",4000,"软件测试工程师"));
        employees.put(2,new Employee3(2,"c",3000,"软件实施"));

        System.out.println(employees);
        System.out.println("**************************************");

        for (Integer key : employees.keySet()) {
            System.out.println("key:"+key+" value:"+employees.get(key));
        }

        employees.forEach((k,v)->{
            System.out.println(k+" "+v);
        });

    }
}
